package com.bolt.report.definition;

import java.io.Serializable;
import java.util.List;

public class DataSetDefinition implements Serializable {

    private String key;

    private String name;

    private DataSetType type;

    private String querySql;

    private String springKey;

    private String apiConvert;

    private String apiUrl;

    private ApiMethod apiMethod;

    private RequestType apiRequestType;

    private String jsonData;

    private boolean list;

    private boolean page;

    private JdbcDataSourceDefinition jdbcConnectionDef;

    private List<ParameterDefinition> parameters;

    private List<FieldDefinition> fields;


    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DataSetType getType() {
        return type;
    }

    public void setType(DataSetType type) {
        this.type = type;
    }

    public String getQuerySql() {
        return querySql;
    }

    public void setQuerySql(String querySql) {
        this.querySql = querySql;
    }

    public List<ParameterDefinition> getParameters() {
        return parameters;
    }

    public void setParameters(List<ParameterDefinition> parameters) {
        this.parameters = parameters;
    }

    public List<FieldDefinition> getFields() {
        return fields;
    }

    public void setFields(List<FieldDefinition> fields) {
        this.fields = fields;
    }

    public JdbcDataSourceDefinition getJdbcConnectionDef() {
        return jdbcConnectionDef;
    }

    public void setJdbcConnectionDef(JdbcDataSourceDefinition jdbcConnectionDef) {
        this.jdbcConnectionDef = jdbcConnectionDef;
    }

    public boolean isList() {
        return list;
    }

    public void setList(boolean list) {
        this.list = list;
    }

    public boolean isPage() {
        return page;
    }

    public void setPage(boolean page) {
        this.page = page;
    }

    public String getSpringKey() {
        return springKey;
    }

    public void setSpringKey(String springKey) {
        this.springKey = springKey;
    }

    public String getApiConvert() {
        return apiConvert;
    }

    public void setApiConvert(String apiConvert) {
        this.apiConvert = apiConvert;
    }

    public String getApiUrl() {
        return apiUrl;
    }

    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
    }

    public ApiMethod getApiMethod() {
        return apiMethod;
    }

    public void setApiMethod(ApiMethod apiMethod) {
        this.apiMethod = apiMethod;
    }

    public RequestType getApiRequestType() {
        return apiRequestType;
    }

    public void setApiRequestType(RequestType apiRequestType) {
        this.apiRequestType = apiRequestType;
    }

    public String getJsonData() {
        return jsonData;
    }

    public void setJsonData(String jsonData) {
        this.jsonData = jsonData;
    }
}